package cn.lger.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 文章的分类
 *
 * @author Pro
 * @date 2018-06-13.
 */
@ApiModel(description = "分类实体")
public class Category {
    @ApiModelProperty("分类id")
    private int id;
    @ApiModelProperty("分类名")
    private String name;
    @ApiModelProperty("分类描述")
    private String description;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
